package com.edu.internship.busi.runner;

import com.edu.internship.busi.service.IDictionaryService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * code is far away from bug with the animal protecting
 *
 * @author lishiquan
 * @description
 * @date 2020-03-30
 */
@Component
@Slf4j
public class DictionaryRunner implements CommandLineRunner {

    @Resource
    private IDictionaryService dictionaryService;

    @Override
    public void run(String... args) {
        log.info("初始化字典到缓存中.....");
        // TODO 建好表之后 自行放开注释
        //dictionaryService.initRedisDictionaries("");
    }
}
